﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YasharEl.Infrastructure.Core.Applications;
using YasharEl.Infrastructure.Core.EntityModel.Applications.Metadata;
using YasharEl.Infrastructure.EntityModel;

namespace YasharEl.Infrastructure.Core.EntityModel.Applications
{
    [MetadataType(typeof(ApplicationEntityMetadata))]
    public class ApplicationEntity : Entity, IApplication
    {
        #region IApplication Members

        public virtual long ApplicationId
        {
            get;
            protected set;
        }

        public virtual string ApplicationName
        {
            get;
            protected set;
        }

        public virtual string Description
        {
            get;
            protected set;
        }

        #endregion

        #region Entity Overrides

        public override long Id
        {
            get
            {
                return ApplicationId;
            }
            protected set
            {
                ApplicationId = value;
            }
        }

        #endregion
    }
}
